<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>输入省份的简称查省</title>
	</head>
	<body>
		<script>
			var input = prompt("请您输入你需要查的省份");
			switch(input){
				case "京":
				document.write("北京市");
				break;
				
				case "津":
				document.write("天津市");
				break;
				
				case "冀":
				document.write("河北省");
				break;
				
				case "晋":
				document.write("山西省");
				break;
				
				case "蒙":
				document.write("内蒙古自治区");
				break;
				
				case "辽":
				document.write("辽宁省");
				break;
				
				case "吉":
				document.write("吉林省");
				break;
				
				case "黑":
				document.write("黑龙江省");
				break;
				
				case "上海市":
				document.write("沪、申");
				break;
				
				case "苏":
				document.write("江苏省");
				break;
				
				case "浙":
				document.write("浙江省");
				break;
				
				case "皖":
				document.write("安徽");
				break;
				
				case "闽":
				document.write("福建");
				break;
				
				case "赣":
				document.write("江西省");
				break;
				
				case "鲁":
				document.write("山东省");
				break;
				
				case "豫":
				document.write("河南省");
				break;
				
				case "鄂":
				document.write("湖南省");
				break;
				
				case "粤":
				document.write("广东省");
				break;
				
				case "桂":
				document.write("广西壮族自治区");
				break;
				
				case "琼":
				document.write("海南省");
				break;
				
				case "川":
				document.write("四川省");
				break;
				
				case "蜀":
				document.write("四川省");
				break;
				
				case "贵、黔":
				document.write("贵州省");
				break;
				
				case "滇、云":
				document.write("云南省");
				break;
				
				case "渝":
				document.write("重庆市");
				break;
				
				case "藏":
				document.write("西藏自治区");
				break;
				
				case "陕、秦":
				document.write("陕西省");
				break;
				
				case "甘、陇":
				document.write("甘肃省");
				break;
				
				case "青":
				document.write("青海省");
				break;
				
				case "宁":
				document.write("宁夏回族自治区");
				break;
				
				case "新":
				document.write("新疆维吾尔自治区");
				break;
				
				case "澳":
				document.write("澳门特别行政区");
				break;
				
				case "台":
				document.write("台湾省");
				break;
			default:
			    alert("错误");
			    break;
			}
		</script>
	</body>
</html>
